package classes;

import java.sql.Time;
import java.util.ArrayList;
import java.util.HashMap;



public class Vehicle {

    private int id;
    private String name;
    private int vehicleTypeID;
    private String vehicleTypeName;
    private boolean brokenDown;
    private VehicleType typeHolder;
    HashMap<Integer,ArrayList<Time>> timeUsed = new HashMap<Integer,ArrayList<Time>>();


    public Vehicle() {
    }

    public Vehicle(int id, String name, int vehicleTypeID, String vehicleTypeName, boolean brokenDown) {
        this.id = id;
        this.name = name;
        this.vehicleTypeID = vehicleTypeID;
        this.vehicleTypeName = vehicleTypeName;
        this.brokenDown = brokenDown;
    }

    public int getId() {
        return id;
    }
    
    public HashMap<Integer, ArrayList<Time>> getTimeUsed() {
        return timeUsed;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setBrokenDown(boolean brokenDown) {
        this.brokenDown = brokenDown;
    }

    public boolean isBrokenDown() {
        return brokenDown;
    }

    public String getVehicleTypeName() {
        return vehicleTypeName;
    }

    public int getVehicleTypeID() {
        return vehicleTypeID;
    }

    public void setVehicleTypeID(int vehicleTypeID) {
        this.vehicleTypeID = vehicleTypeID;
    }

    public VehicleType getTypeHolder() {
        return typeHolder;
    }
    public void setTypeHolder(VehicleType typeHolder) {
        this.typeHolder = typeHolder;
    }
    
    @Override
    public String toString(){
    	return getName();
    }
}
